﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;

namespace DYSales.Views.Stock
{
    public partial class main_page : Page
    {
        public main_page()
        {
            InitializeComponent();
            bt_商品管理.Click += new RoutedEventHandler(bt_商品管理_Click);
            bt_进货批次管理.Click += new RoutedEventHandler(bt_进货批次管理_Click);
            bt_退货管理.Click += new RoutedEventHandler(bt_退货管理_Click);
            bt_盘点.Click += new RoutedEventHandler(bt_盘点_Click);
            bt_盘点管理.Click += new RoutedEventHandler(bt_盘点管理_Click);
        }

        void bt_盘点管理_Click(object sender, RoutedEventArgs e)
        {
            f_content.Navigate(new Uri("/Views/Stock/mgInventory_page.xaml", UriKind.Relative));
        }

        void bt_盘点_Click(object sender, RoutedEventArgs e)
        {
            f_content.Navigate(new Uri("/Views/Stock/Inventory_page.xaml", UriKind.Relative));
        }

        void bt_退货管理_Click(object sender, RoutedEventArgs e)
        {
            f_content.Navigate(new Uri("/Views/Stock/mgUnstock_page.xaml", UriKind.Relative));
        }

        void bt_进货批次管理_Click(object sender, RoutedEventArgs e)
        {
            f_content.Navigate(new Uri("/Views/Stock/mgstock_page.xaml", UriKind.Relative));
        }

        void bt_商品管理_Click(object sender, RoutedEventArgs e)
        {
            f_content.Navigate(new Uri("/Views/Stock/pd_page.xaml", UriKind.Relative));
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

    }
}
